<?php
namespace app\admin\controller\goods;

use app\common\model\InStore as Model;

use app\admin\classes\BasicVerify;
use core\Api;
use core\V;
use core\Res;

/**
 * 产品
 */


class VerifyInstore extends BasicVerify {

  static $model=Model::class;


  static $title=[
    "show"=>true,
    "title"=>"入库审核",
    "breadcrumb"=>["产品","审核","入库审核"],
    "subtitle"=>"审核入库记录",
  ];


  public function queryFilter(&$query){
    $query->where("status",1);
    $query->with("goods,store");
  }



   public function result_body(){

     return '
     <el-table-column
       prop="goods.code"
       label="编码"
       width="120">
     </el-table-column>

     <el-table-column
       prop="goods.name"
       label="名称"
       width="180">
     </el-table-column>

     <el-table-column
       prop="goods.unit"
       label="单位"
       width="80">
     </el-table-column>

     <el-table-column
       prop="store.name"
       label="库位">
     </el-table-column>

     <el-table-column
       prop="goods.des"
       label="描述">
     </el-table-column>


     ';
   }




 }
